<?php

namespace app\user\model;

use think\Model;
use app\common\traits\model\TraitModel;

class Notifys extends Model
{
	use TraitModel;

	public static function getNotifysLists($status)
	{
		return model('UserMessages')->getMsgList($status, self::getLoginUserInfo('id'));
	}
    public static function getNotifysCount($status)
    {
    	return model('UserMessages')->getNotifyCount($status, self::getLoginUserInfo('id'));
    }
    public static function getNotify($motifyid)
    {
    	return model('UserMessages')->getMsg($motifyid, self::getLoginUserInfo('id'));
    }
    public static function createNotifys($motifys_info = [])
    {
    	return model('Messages')->createMsg($motifys_info);
    }
}
